<?php
/**
 * Created by PhpStorm.
 * User: lphwxl
 * Date: 2018/7/12
 * Time: 13:38
 */

namespace App\Services;


use Illuminate\Http\Request;

class TokenValidator extends BaseValidator
{

    public $rules = [
        'authorization'=>'required'
    ];

    public $message = [
        'Authorization.required'=>'Authorization 不存在！'
    ];

    public function goCheck(Request $request){
        //var_dump($request->header());die;
        $this->check($request->header());
    }


}